/* Copyright (c) 2004-2024 Peigen.info. All rights reserved. */

package info.peigen.hotpot.common.service.base.test.faker;

import net.datafaker.Faker;

import java.util.Locale;

/**
 * <b>(HotpotFakerUtil)</b>
 *
 * @author Lihai
 * @version 1.0.0
 * @since 2023/8/28
 */
public class HotpotFakerUtil {
    static        HotpotFaker hotpotFaker = new HotpotFaker(new Locale("zh-CN"));
    public static Faker       faker       = new Faker(new Locale("zh-CN"));

    public static String userName() {
        return faker.name().name();
    }

    /**
     * 形容词
     *
     * @return String
     */
    public static String adjectivePositive() {
        return hotpotFaker.dataExtend().adjectivePositive();
    }

    /**
     * 颜色的形容词
     *
     * @return String
     */
    public static String adjectiveColor() {
        return hotpotFaker.dataExtend().adjectiveColor();
    }

    /**
     * 名词
     *
     * @return String
     */
    public static String noun() {
        return hotpotFaker.dataExtend().noun();
    }

    /**
     * 变形金刚
     *
     * @return String
     */
    public static String transformers() {
        return hotpotFaker.dataExtend().transformers();
    }

    /**
     * 带形容词的变形金刚
     *
     * @return String
     */
    public static String adjectiveTransformers() {
        return adjectivePositive() + hotpotFaker.dataExtend().transformers();
    }

    /**
     * 停车位编号,A001~Z999
     *
     * @return String
     */
    public static String parkingNumber() {
        return faker.regexify("[A-Z][0-9]{3}");
    }

}
